package com.freecloud.javabasics.design.adapter;

import com.freecloud.javabasics.design.adapter.passport.LoginForThirdService;

/**
 * 适配器模式，注重兼容、转换
 * @Author: maomao
 * @Date: 2019-11-18 10:48
 */
public class AdapterTest {

    public static void main(String[] args) {
        LoginForThirdService service = new LoginForThirdService();
        //不改变原有代码也要可以实现新的需求
        //可加一层策略模式
        service.loginForQQ("sss");
    }
}
